package entity;

import java.util.Map;

/**
 * Created by kzdatd on 2020/1/14.
 */
public class Topic1Data {
    private String measurement;
    private long time;
    private Map<String,String> tags=null;
    private Map<String,Double> fields=null;

    public String getMeasurement() {
        return measurement;
    }

    public void setMeasurement(String measurement) {
        this.measurement = measurement;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public Map<String, String> getTags() {
        return tags;
    }

    public void setTags(Map<String, String> tags) {
        this.tags = tags;
    }

    public Map<String, Double> getFields() {
        return fields;
    }

    public void setFields(Map<String, Double> fields) {
        this.fields = fields;
    }

    public Topic1Data(String tableName, long timeStamp, Map<String,String> tags, Map<String,Double> fields) {
        this.measurement=tableName;
        this.time =timeStamp;
        this.tags=tags;
        this.fields=fields;
    }

    public Topic1Data() {
    }
}
